You are not logged in.

#1 2011-03-27 19:32:55

Lowra
Member
Registered: 2009-09-21
Posts: 192

Accessing to a usb stick while booting with init=/bin/sh

Hello,

I am trying something: I would like to access to some data stored on a usb stick while I am booting to the kernel using the "init=/bin/sh" parameters.

Is that possible ? I tried some "mkdir /media/disk" then "mount /dev/sda /media/disk" but I'm not very comfortable with mounting devices in a terminal, and even less while using init=/bin/sh parameters.

BTW, Do you know where I could find some documentation about this parameter ? I does not seem to give a full root access to the machine since I can't use the network...

Thank you :]

Offline

#2 2011-03-28 12:45:01

Lowra
Member
Registered: 2009-09-21
Posts: 192

Re: Accessing to a usb stick while booting with init=/bin/sh

Some news:

My USB stick is now detected when I do 'cat /var/log/messages.log | grep sdb". I had to "modprobe usb-storage".

localhot kernel : sdb: sdb1
localhost kernel: sd 3:0:0:0: [sdb] Attached SCSI removable disk

But I still can't get it mounted.

mount: special device /dev/sdb1 does not exist"

I need help, please

Offline

#3 2011-03-31 20:44:30

Lowra
Member
Registered: 2009-09-21
Posts: 192

Re: Accessing to a usb stick while booting with init=/bin/sh

up !

Offline

#4 2011-04-02 17:19:22

Lowra
Member
Registered: 2009-09-21
Posts: 192

Re: Accessing to a usb stick while booting with init=/bin/sh

up !

Offline

#5 2011-04-02 18:03:57

jecxjo
Member
Registered: 2011-02-22
Posts: 8

Re: Accessing to a usb stick while booting with init=/bin/sh

$ ls -l /dev/sd*
brw-rw---- 1 root disk 8,  0 Apr  2 12:56 /dev/sda
brw-rw---- 1 root disk 8,  1 Apr  2 12:57 /dev/sda1
brw-rw---- 1 root disk 8,  2 Apr  2 12:56 /dev/sda2
brw-rw---- 1 root disk 8,  3 Apr  2 12:57 /dev/sda3
brw-rw---- 1 root disk 8,  4 Apr  2 12:57 /dev/sda4
brw-rw---- 1 root disk 8, 16 Apr  2 12:57 /dev/sdb
$

If you do see the device nodes exist, then there is a bigger issue. If you do not see them you can create them

# mknod /dev/sdb -m 660 b 8 16 
# mknod /dev/sdb1 -m 660 b 8 17

Then try mounting.

Offline

Board footer

Powered by FluxBB