XBMCbuntu does not see 2nd HDD
#16
I just thought of a detail that might be important:
The data drive I am using was once my main drive with Ubuntu on it AND my data......in other words, if I pull out the primary (SSD) drive right now and reboot, the machine will boot up to my old Ubuntu/Boxee install......

My idea was to simply put in an SSD and install XBMCbuntu on it and then use the former Ubuntu/Boxee for the data it contained and NOT the OS......

I'm just wondering if I am having such a hard time because the data drive was once a primary drive.....
Reply
#17
Nothing to do with it, but appreciate that you do not mount a drive, you mount a partition.

Log in and type:

Code:
sudo blkid
ls -l /dev/sd*

The first will give a list of partitions and their UUIDs, the second will give a list of drives (/dev/sdX) and partitions (/dev/sdXN) where X is a letter a,b,c etc and N is a number 1,2,3 etc

Give me those outputs and I will guide you through the next part.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#18
Excellent! And thanks for the clarification!

/dev/sda1: UUID="24347c3c-1097-407f-95e2-cac48a5e65bd" TYPE="ext4"
/dev/sda5: UUID="1c258f3e-2145-49cf-bfeb-9eab948eb87d" TYPE="swap"
/dev/sdb1: UUID="9383a21c-4f28-4618-8e19-9a94a816d20c" TYPE="ext4"
/dev/sdb5: UUID="d42544ea-8b9d-4168-aaf7-79416063eb4a" TYPE="swap"

brw-rw---- 1 root disk 8, 0 Aug 29 17:12 /dev/sda
brw-rw---- 1 root disk 8, 1 Aug 29 17:12 /dev/sda1
brw-rw---- 1 root disk 8, 2 Aug 29 17:12 /dev/sda2
brw-rw---- 1 root disk 8, 5 Aug 29 17:12 /dev/sda5
brw-rw---- 1 root disk 8, 16 Aug 29 17:12 /dev/sdb
brw-rw---- 1 root disk 8, 17 Aug 29 17:12 /dev/sdb1
brw-rw---- 1 root disk 8, 18 Aug 29 17:12 /dev/sdb2
brw-rw---- 1 root disk 8, 21 Aug 29 17:12 /dev/sdb5
Reply
#19
OK so your second hard drive is probably sdb and the drive we probably want is sdb1 and the UUID you want is the one starting 9883a

I assume you already have the mount point /mnt/data created, otherwise

Code:
sudo mkdir /mnt/data

Your fstab line looks fine if you change to the correct UUID.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#20
Here is the output from fdisk:

sudo fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x93a993a9

Device Boot Start End Blocks Id System
/dev/sda1 * 63 1942965359 971482648+ 83 Linux
/dev/sda2 1942965360 1953520064 5277352+ 5 Extended
/dev/sda5 1942965423 1953520064 5277321 82 Linux swap / Solaris

Disk /dev/sdb: 32.0 GB, 32017047552 bytes
255 heads, 63 sectors/track, 3892 cylinders, total 62533296 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006ad5a

Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 58865663 29431808 83 Linux
/dev/sdb2 58867710 62531583 1831937 5 Extended
/dev/sdb5 58867712 62531583 1831936 82 Linux swap / Solaris

So wouldn't SDA1 be the drive to pick? It looks like the partition of the 1T drive with the data on it......
Reply
#21
what is the output of mount?
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#22
I tried putting in the "9383a...." part but it didn't work.....
Reply
#23
I think you are right, sda1 so try its uuid that you found from blkid.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#24
try this

Code:
cd /
sudo mkdir /mnt/data
sudo echo "UUID=24347c3c-1097-407f-95e2-cac48a5e65bd /mnt/data ext4 users,defaults 0 0 " >> /etc/fstab

to test type
Code:
sudo mount -a
Press THANK USER if I Help
Reply
#25
Tried it but I get a permission denied

"-bash: /etc/fstab: Permission denied"

When I do the "sudo mount -a" I get nothing.....
Reply
#26
try
Code:
sudo su

first then
Press THANK USER if I Help
Reply
#27
Still nothing when I do the sudo su, then sudo mount -a

I assume that when I do the sudo echo line, I out spaces in between the parameters, i.e. ...cac48a5e65bd<space>/mnt/data<space>ext4<space>.....etc.....

Is that correct? So I am guessing that the sudo su must elevate authority?
Reply
#28
Don't bother with the echo thing, just edit the file with nano or whatever.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#29
Ok so I've tried adding that line using spaces AND tabs and neither seems to work.....
Reply
#30
Please copy-and-paste the contents of your /etc/fstab file here for others to review.
Reply

Logout Mark Read Team Forum Stats Members Help
XBMCbuntu does not see 2nd HDD0