User avatar
Dweeber
Posts: 606
Joined: Fri Aug 17, 2012 3:35 am
Location: Mesa, AZ
Contact: Website

Mount image of Raspian on USB Thumb drive

Mon Sep 24, 2012 6:39 pm

I have a USB Thumb drive with a 16GB MicroUSB card in it that I wrote to it using Win32diskimager. On it I have written the current Raspbian Wheeze distro. I have not yet booted this copy yet.

If I wanted to plug that USB Drive into the RPi USB port (no hub) and then mount the two filesystems on it to /mnt, what commands would I use to get it mounted read/write so that I could access it from my RPi?

The idea is to do some preset up before I boot it for the first time without having to use another computer.
Dweeber A.K.A. Kevin...
My RPI Info Pages including Current Setup - http://rpi.tnet.com

User avatar
Dweeber
Posts: 606
Joined: Fri Aug 17, 2012 3:35 am
Location: Mesa, AZ
Contact: Website

Re: Mount image of Raspian on USB Thumb drive

Mon Sep 24, 2012 8:10 pm

Doing this as root....

Code: Select all

# ls -al /mnt
total 16
drwxr-xr-x  4 root root 4096 Sep 24 12:58 .
drwxr-xr-x 24 root root 4096 Sep 11 04:36 ..
drwxr-xr-x  2 root root 4096 Sep 24 12:58 boot
drwxr-xr-x  2 root root 4096 Sep 24 12:58 root
Mounting FAT partion as boot...

Code: Select all

mount /dev/sda1 /mnt/boot
Mounting root (Unix Ext4)

Code: Select all

mount -t ext4 /dev/sda2 /mnt/root

Code: Select all

df -h 
...
/dev/sda2       1.8G  1.2G  447M  74% /mnt/root
/dev/sda1        56M   36M   21M  63% /mnt/boot
Dweeber A.K.A. Kevin...
My RPI Info Pages including Current Setup - http://rpi.tnet.com

Return to “Raspberry Pi OS”