Re: Mount a new HDD somewhere in the file system ”permanently”
Johnny Rosenberg
gurus.knugum at gmail.com
Tue Oct 25 19:45:38 UTC 2011
2011/10/24 Bruce Pieterse <octoquadza at gmail.com>:
> On Mon 24 Oct 2011 19:50:43 SAST, Johnny Rosenberg wrote:
>>
>> We just bought a new HDD for my wife's desktop machine, since the
>> existing one seems a bit too small. She work with a lot of images in
>> RAW format…
>>
>> Ubuntu 10.04 is installed on the old HDD and we are not going to
>> change that for quite a while. Our thought is to keep the old HDD with
>> Ubuntu 10.04 and let the new one appear as her Images folder somewhere
>> in her file system, because that's the folder that will really be
>> really.
>>
>> What do we need to obtain this permanently?
>> We did not decide the exact structure yet, but let's say that we want
>> to mount the new HDD as /home/UserName/Something/SomethingElse/Images.
>> /home is already a partition of its own at the old HDD.
>>
>> I guess there need to be some work done in fstab somehow, right? Is
>> there some kind of software out there that let us do this graphically
>> or is the terminal the way to go?
>>
>> Thanks in advance!
>>
>>
>>
>> Kind regards
>>
>> Johnny Rosenberg
>> ジョニー・ローゼンバーグ
>>
>
> Johnny,
>
> Terminal will be the best way to go but we can do it in both.
>
> *Terminal Mode & Graphic Mode*
> 1. Create the directory structure
> i.e./home/UserName/Something/SomethingElse/Images
> 2. Get the unique device identifier with sudo blkid so the same device is
> always loaded at the above mount point. If you not sure which device it is
> you can use the disk-utility in gnome or sudo fdisk -l and match
> /dev/sd[a-z][1-9] with blkid. If you still not sure you can give me the
> output and I'll assist further.
> 3. Edit fstab: sudo vi /etc/fstab (terminal mode) or gksudo gedit /etc/fstab
> (graphical mode)
> 4. Add the line: UUID=<blkid from step 2>
> /home/UserName/Something/SomethingElse/Images ext4 errors=remount-ro
> 0 1
Failed first when I tried to have a folder name with a space in it.
Doesn't seem like quotes around the path name nor a backslash ahead of
the space helped, so I simply changed the name entirely to one without
spaces. Is it not possible to have spaces in the folder name in this
case?
> 5. Save and then use mount -a to have it loaded in the new location
Yes, that works, thanks!
So now the folder /home/UserName/Something/SomethingElse/Images (let's
call it that) exists and seems to be the HDD. However, we still have a
HDD icon on the desktop called ”1 TB file system”. Is there something
to add in fstab to make sure that doesn't happen? For example, if we
plug in a USB stick we want it to appear on the desktop, but we DON'T
want this HDD to appear there. Possible? How?
>
> Done. :)
>
> --
> Best of luck,
>
> Bruce
Best regards
Johnny Rosenberg
ジョニー・ローゼンバーグ
Conny Enström skrev:
”http://wiki.linuxquestions.org/wiki/Adding_Another_Hard_Drive
or
http://www.debianhelp.co.uk/newharddisk.htm”
Johnny Rosenberg svarar:
Tackar!
Vänliga hälsningar
Johnny Rosenberg
ジョニー・ローゼンバーグ
More information about the ubuntu-users
mailing list