Android Tablets Forum banner
1 - 5 of 5 Posts

·
Registered
Joined
·
185 Posts
Discussion Starter · #1 ·
I now have 2 USB hard drives on my MK808. But I put PicUntu 0.9 on a small boot partition. But on boot I have to press S go go on because it don't mount right. It will mount the boot on /media/USBdisk2-3TB but I want that to be the 2ND partition mounted there. Here is some commands you can see how I hand with commands mount it. But I want it to be like this on boot. Any one know how?

Code:
[email protected]:/media# ls<br />
ubuntu  USBdisk1-3TB  USBdisk2-3TB<br />
[email protected]:/media# fdisk -l<br />
Note: sector size is 4096 (not 512)<br />
<br />
Disk /dev/sda: 3000.6 GB, 3000558944256 bytes<br />
255 heads, 63 sectors/track, 45599 cylinders, total 732558336 sectors<br />
Units = sectors of 1 * 4096 = 4096 bytes<br />
Sector size (logical/physical): 4096 bytes / 4096 bytes<br />
I/O size (minimum/optimal): 4096 bytes / 4096 bytes<br />
Disk identifier: 0x00075133<br />
<br />
   Device Boot      Start         End      Blocks   Id  System<br />
/dev/sda1             256    11674623    46697472   83  Linux<br />
/dev/sda2        11674624   732558335  2883534848   83  Linux<br />
Note: sector size is 4096 (not 512)<br />
<br />
Disk /dev/sdb: 3000.6 GB, 3000558944256 bytes<br />
1 heads, 1 sectors/track, 732558336 cylinders, total 732558336 sectors<br />
Units = sectors of 1 * 4096 = 4096 bytes<br />
Sector size (logical/physical): 4096 bytes / 4096 bytes<br />
I/O size (minimum/optimal): 4096 bytes / 4096 bytes<br />
Disk identifier: 0x000246c6<br />
<br />
   Device Boot      Start         End      Blocks   Id  System<br />
/dev/sdb1             256   732558335  2930232320   83  Linux<br />
[email protected]:/media# ls<br />
ubuntu  USBdisk1-3TB  USBdisk2-3TB<br />
[email protected]:/media# mount /dev/sda2 /media/USBdisk2-3TB/<br />
[email protected]:/media# mount /dev/sdb1 /media/USBdisk1-3TB/<br />
[email protected]:/media# df<br />
Filesystem      1K-blocks       Used  Available Use% Mounted on<br />
/dev/sda1        45963268    1457144   42171252   4% /<br />
udev               430876          4     430872   1% /dev<br />
tmpfs              431696          0     431696   0% /tmp<br />
tmpfs              172680       2648     170032   2% /run<br />
none                 5120          0       5120   0% /run/lock<br />
none               431696          0     431696   0% /run/shm<br />
none               102400          4     102396   1% /run/user<br />
tmpfs              431696          0     431696   0% /var/tmp<br />
cgroup             431696          0     431696   0% /sys/fs/cgroup<br />
/dev/sda2      2838287624 1266813236 1427297648  48% /media/USBdisk2-3TB<br />
/dev/sdb1      2884252896 1528697360 1209043920  56% /media/USBdisk1-3TB<br />
[email protected]:/media#
-Raymond Day
 

·
Registered
Joined
·
185 Posts
Here is how I have my /etc/fstab file now. But I have not tested booting with it yet.

Code:
# UNCONFIGURED FSTAB FOR BASE SYSTEM<br />
/dev/root / ext4 defaults,noatime 0 0<br />
tmpfs    /var/log    tmpfs    defaults    0 0<br />
tmpfs    /tmp        tmpfs    defaults    0 0<br />
tmpfs    /var/tmp    tmpfs    defaults    0 0<br />
<br />
/dev/hda1       /                       ext4    defaults        0       0<br />
/dev/sdb1	/media/USBdisk1-3TB	ext4	defaults	0	0<br />
/dev/sda2	/media/USBdisk2-3TB	ext4	defaults	0	0
I am not sure does the line "/dev/root /ext4 defaults,noatime 0 0" mounts the boot? If not I put in "/dev/hda1 / ext4 defaults 0 0" all so I think the "/dev/sda2 at the end my not be 0 0 but 0 1 because it's the 2ND partition.

The 1ST boot partition is 44.55 GB. It has PicUntu 0.9 on it. The 2ND partition on the same drive, /dev/sda2 is the rest of the 3TB drive. 2.69 TB.

Any one know if this is right?

I love to get this right so it boots up with the mounts right.

-Raymond Day
 

·
Registered
Joined
·
185 Posts
Discussion Starter · #3 ·
Wow I got it to work right on booting up. My /etc/fstab looks like this now.

Code:
# UNCONFIGURED FSTAB FOR BASE SYSTEM<br />
/dev/root / ext4 defaults,noatime 0 0<br />
tmpfs    /tmp        tmpfs    defaults    0 0<br />
tmpfs    /var/tmp    tmpfs    defaults    0 0<br />
<br />
/dev/sda2	/media/USBdisk2-3TB	ext4	defaults	0	0<br />
/dev/sdb1	/media/USBdisk1-3TB	ext4	defaults	0	0<br />
I would reboot it and lots of times it would error saying have to press S or M to edit the boot. S to skip. If I did S it would not mount it right.

Now my df looks like this:

Code:
login as: root<br />
[email protected]'s password:<br />
Welcome to Ubuntu 12.10 (GNU/Linux 3.0.8+ armv7l)<br />
<br />
 * Documentation:  [URL=https://help.ubuntu]https://help.ubuntu[/URL].com/<br />
Last login: Fri Dec 31 19:05:58 1999<br />
[email protected]:~# df<br />
Filesystem      1K-blocks       Used  Available Use% Mounted on<br />
/dev/sda1        45963268    1457428   42170968   4% /<br />
udev               430876          4     430872   1% /dev<br />
tmpfs              431696          0     431696   0% /tmp<br />
tmpfs              172680       2644     170036   2% /run<br />
none                 5120          0       5120   0% /run/lock<br />
none               431696          0     431696   0% /run/shm<br />
none               102400          4     102396   1% /run/user<br />
tmpfs              431696          0     431696   0% /var/tmp<br />
cgroup             431696          0     431696   0% /sys/fs/cgroup<br />
/dev/sda2      2838287624 1266813236 1427297648  48% /media/USBdisk2-3TB<br />
/dev/sdb1      2884252896 1528697360 1209043920  56% /media/USBdisk1-3TB<br />
[email protected]:~# uptime<br />
 19:10:49 up 5 min,  2 users,  load average: 0.42, 0.24, 0.13<br />
[email protected]:~#
Just did a reboot again to make sure. It all comes up with OK at the right and right to the log in. Works now. I am happy.

-Raymond Day
 

·
Registered
Joined
·
185 Posts
"poweroff" my PicUntu to move it so it don't hang down. A more permited place. So the power got unplug and I thought it would be right but I was wrong! I had to hook up the screen and keyboard again and this time it was hard were I put it. In a little baskit under my shelf.

The screen said:

Code:
mountall: Event failed<br />
ata_id[327]: HDIO_GET_IDENTITY failed for '/drv/sda' : Invalid argument<br />
<br />
ata_id[329]: HDIO_GET_IDENTITY failed for '/drv/sdb' : Invalid argument<br />
<br />
The disk drive for /media/USBdisk2-3TB is not ready yet or not present.<br />
[URL=keys:Continue]keys:Continue[/URL] to wait, or Press S to skip mounting or M for manual recovery
So I edit /etc/fstab again thinking that it can mix up what hard drive it is, because it's just USB hard drives. Or sda or sdb. I put it's like ID number in the fstab file so now /etc/fstab file looks like this:

Code:
# UNCONFIGURED FSTAB FOR BASE SYSTEM<br />
/dev/root / ext4 defaults,noatime 0 0<br />
tmpfs    /tmp        tmpfs    defaults    0 0<br />
tmpfs    /var/tmp    tmpfs    defaults    0 0<br />
<br />
UUID=73b57c71-2de3-43fd-8315-e5643887f29a	/media/USBdisk1-3TB	ext4	defaults	0	0<br />
UUID=5d7fcc80-2616-4bb1-9c94-02a453a00a96	/media/USBdisk2-3TB	ext4	defaults	0	0<br />
Did not do a reboot command but poweroff command and unplug the USB power for a wile and tested it again and this time it booted up.

It looks like have to have the UUID number of the hard drives to mount them right. This my help others.

-Raymond Day
 

·
Registered
Joined
·
185 Posts
Discussion Starter · #5 ·
A neat command to show the name and UUID of all the partitions and hard drive is this:

Code:
blkid
That is neat to know what to put in your fstab file.

-Raymond Day
 
1 - 5 of 5 Posts
Top