Blog Forum Wiki Links Contact Us NetbookUser
RunCore Pro IV SSD Transforms your ASUS EEE PC by increasing 
performance 5-40X. Your satistfaction guaranteed RunCore Pro 70mm SATA Mini PCI-e SSD
RunCore Pro IV 70mm SATA II Mini PCI-e SSD
RunCore Pro IV 2.5 Inch SATA II SSD

You are not logged in.

#1 2008-06-17 4:15:13 am

Pyrrhus
New member
Registered: 2008-06-15
Posts: 8

Problems mounting sda2 in rescue mode...

Hiya,

I'm having some problems mounting /dev/sda2 to /mnt-user on my Asus 900 when in rescue mode.

I've followed the directions here:

http://wiki.eeeuser.com/iptables

to enable rescue mode, and it seems to be working on my computer.  But when I enter the command:

mount /dev/sda2 /mnt-user

/mnt-user seems not to have any directory “home”

But certain other program instructions (e.g. these instructions) seem to imply that home ought to exist with my saved files.

eg, the instructions for setting up iptables indicates that we should! be able to copy some files  from /mnt-user/home such that:

cd /mnt-user/home/user/newroot

will be a valid command if you have mounted /dev/sda2 to /mnt-user and have a directory /home/user/newroot.

The only directories available are:

dev
etc
lost+found
media
mnt
opt
root
sbin
usr
var

Anyone have any suggestions why this is not working as expected?

Thanks!

Offline

 

#2 2008-06-17 4:43:35 am

stupidsing
Senior Member
From: Hong Kong
Registered: 2008-04-16
Posts: 212

Re: Problems mounting sda2 in rescue mode...

The wiki is for 701.

On 900 the /dev/sdb1 is mounted to /home in normal mode.  So under rescue mode if you mount sdb1 somewhere, you would find a "user" folder and your stuff under it.

I see the wiki contains a modded 701 kernel too - I kind of doubt if it would be suitable for 900; perhaps bootable, but the multitouch touchpad may break.

Last edited by stupidsing (2008-06-17 10:28:48 am)

Offline

 

#3 2008-06-17 8:57:26 am

optogeek
New member
Registered: 2008-06-17
Posts: 3

Re: Problems mounting sda2 in rescue mode...

Hi,

One thing to note is that in resuce mode there is no /dev/sdb1 node created as default so you will have to create one with;

mknod /dev/sdb b 8 16
mknod /dev/sdb1 b 8 17

before you try

mount /dev/sdb1 /mnt-user

Hope this helps.

Offline

 

#4 2008-07-30 9:22:42 pm

notoriousxl
New member
From: Ostra (AN) - Italy
Registered: 2008-03-11
Posts: 9
Website

Re: Problems mounting sda2 in rescue mode...

optogeek wrote:

mknod /dev/sdb b 8 16
mknod /dev/sdb1 b 8 17

It doesn't work sad

Offline

 

#5 2008-07-31 3:50:28 pm

optogeek
New member
Registered: 2008-06-17
Posts: 3

Re: Problems mounting sda2 in rescue mode...

I don't know but your /home drive might be getting allotted to a different device.  To try a debug try the following.

When NOT in rescue mode try typing

mount

You should get something like;

rootfs on / type rootfs (rw)
/dev/sda1 on / type ext2 (ro)
none on / type aufs (rw,xino=/.aufs.xino,br:/=rw:/=ro)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw)
tmpfs on /dev/shm type tmpfs (rw)
tmpfs on /tmp type tmpfs (rw)
/dev/sdb1 on /home type ext3 (rw,noatime,data=ordered)
usbfs on /proc/bus/usb type usbfs (rw)


Check which device is associated with /home (in this case /dev/sdb1 second from the bottom.  Once you know which device you need you can try;

ls -la /dev/sdb*

You will get;

brw-rw---- 1 root floppy 8, 16 2002-01-01 05:03 /dev/sdb
brw-rw---- 1 root floppy 8, 17 2002-01-01 05:03 /dev/sdb1
brw-r--r-- 1 root root   8, 18 2002-01-01 05:03 /dev/sdb2

Now in rescue mode you can use mknod to recreate the entries above.  The format of the mknod command is;

mknod device type major_number minor_number

You can get all this from the ls command above.  The type is b for block, from the brw-rw----.  The major and minor number are the two number separated by the commas above.  The result is;

mknod /dev/sdb b 8 16
mknod /dev/sdb1 b 8 17

If it doesn't work post the output of the mount and ls commands.

Offline

 

#6 2008-08-03 11:10:34 am

notoriousxl
New member
From: Ostra (AN) - Italy
Registered: 2008-03-11
Posts: 9
Website

Re: Problems mounting sda2 in rescue mode...

optogeek wrote:

Hi,

One thing to note is that in resuce mode there is no /dev/sdb1 node created as default so you will have to create one with;

mknod /dev/sdb b 8 16
mknod /dev/sdb1 b 8 17

Ok, it worked! wink
Sorry for the trouble, but I was giving help to a friend of mine via E-mail, and he messed up with commands! wink

I wrote a tutorial about restoring the Eee PC password, but, since I've got a 701 one, the partitions (and paths) are a bit different.

If you've got a Website, tell me; I'll give you a backlink! wink

Offline

 

#7 2008-08-03 1:19:38 pm

optogeek
New member
Registered: 2008-06-17
Posts: 3

Re: Problems mounting sda2 in rescue mode...

That is okay.  I am happy to help.

:-)

Offline

 

#8 2008-08-03 2:32:03 pm

notoriousxl
New member
From: Ostra (AN) - Italy
Registered: 2008-03-11
Posts: 9
Website

Re: Problems mounting sda2 in rescue mode...

optogeek wrote:

That is okay.  I am happy to help.

:-)

Thank you, anyway! wink

Offline

 

Board footer

Powered by PunBB 1.2.15
© Copyright 2002–2005 Rickard Andersson