Re: Mount USB HDD to a certain /media/folder after boot




On Sat, 2008-05-24 at 12:12 +0200, Mario Vukelic wrote:
On Sat, 2008-05-24 at 10:55 +0200, Catalin David wrote:
I have an external NTFS formatted 500GB external USB drive which is not
always plugged in when I turn on the laptop. So... I was wondering if
there is any way to make it mount directly to a special folder in
/media (for example disk_).

AFAICT, this should work automatically if the disk in question has a
volume name. Seem the man page for tune2fs (hint: -L option)

I know that /etc/fstab takes care of these
details,

Not for external devices, usually. They are mounted automatically (using
pmount) by a combination of HAL, dbus, and udev (IIRC)

but I don't know whether it will also work for plugged in HDD
after the boot sequence, while running Ubuntu.

Works for me (with disks that have a volume label)


Hi Mario & other intererested Ubuntians
I am (still) struggling with my external TCP-IP/USB HDD, here USB in
particular, too !

With GParted 0.3.6 I have created two partitions:
/dev/sdb5 - fs: ntfs - label: LD142ntfs
/dev/sdb6 - fs: ext3 - label: LD142ext3

vol_id is recognizing both and fstab got their entries with UUID's !!

One thing I noticed is a messy display of blkid with different
beginnings like following:

Some entries start with UUID ...
... others with TYPE ...
,,, and some with LABEL

and here is the blkid:

sna@WS222:~$ blkid
/dev/sda1: UUID="D2C47460C47448AD" LABEL="WS222C_120GB" TYPE="ntfs"
/dev/sda6: TYPE="swap" UUID="59dfd5da-748a-4f9f-99c3-5529c7c96204"
/dev/sda7: LABEL="WS222_uROOT 7.10"
UUID="edf0353d-b99b-41d6-b7aa-57fad83fab35" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda5: LABEL="WS222_uHOME"
UUID="a27937eb-32e3-4774-88bd-27166fb722ea" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb5: UUID="62A61C050DE7D73C" LABEL="LD142ntfs" TYPE="ntfs"
/dev/sdb6: LABEL="LD142ext3" UUID="0f05abd4-500c-43b8-992d-71351e8aaa41"
SEC_TYPE="ext2" TYPE="ext3"
sna@WS222: ~$


With "mount LD142ntfs" I am told, only root can do !
OK, with "sudo mount LD142ntfs" I am asked for the PWD and it seems
working but I can't
find and see anything !!

Trying the same with LD142ext3 ends following:
sna@WS222:~$ sudo mount -L LD142ext3
[sudo] password for sna:
mount: mount point /dev/sdb6 is not a directory
sna@WS222:~$

What am I doing wrong here ??

TIA for any advice, help, hints and suggestions.
Cheers, svobi


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • SUMMARY: Creating bare-metal recovery disks
    ... Copy system disk ... To create an ADVFS root and /usr partition, ... Next you are going to need to make the following mount points: ... mkdir /rootclone ...
    (Tru64-UNIX-Managers)
  • Re: having trouble mounting disk image on loopback device
    ... a dd image taken from a physical disk. ... Therefore, to mount each partition, I used these commands: ... mount command will not suffice...For that matter, ... The device must contain a filesystem recognizable ...
    (comp.os.linux.misc)
  • Re: NFS mounts not largefiles by default?
    ... > That's simply because there is no such mount option for nfs filesystems. ... >>up several terminal sessions on the console which appeared to be hung ... three Sun Rays, and I don't normally use its console, just the Rays. ... directories are on a separate disk. ...
    (comp.unix.solaris)
  • Re: USB stick access freezing up system?
    ... would expect the application to fail, but the stick is just a mount in ... How can it corrupt a filesystem on a device that's been removed? ... corruption of its filesystem, ... I have transported an MFM disk that had not been parked with the ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Diagnosing the colored pinwheel
    ... Your boot drive needs a minimum of 15% unused disk space so it can create files for swapping and other system-related activity. ... Activity Monitor and top do specific work that will not highlight some symptoms an app or system may exhibit. ... Boot drive means that mount that the system and kernel was loaded from, typically the one given the "/" designation. ...
    (comp.sys.mac.apps)