How to access files on /dev/hdc1?


Recommended Posts

I have recently moved from Windows XP to Linux (Fedora Core 3) and I don't understand how to access my second hard drive? When I go to fdisk -l is says I have disk /dev/hda (partitions /dev/hda1 and hda2) 81.9GB and /dev/hdc (partition /dev/hdc1) 120.0GB, so I assume that means everything is mounted. When I go to / it lists the total free space as 164.4GB, which would be the total of the two drives.

What I don't know is where to put files so that they are physically on /dev/hdc1? Can anyone help me out?

Link to comment
https://www.neowin.net/forum/topic/307963-how-to-access-files-on-devhdc1/
Share on other sites

[root@titanium ~]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
[root@titanium ~]#

Well, first thing we can try is open a terminal, and su to root (and give the password).

Then type konqueror ~ (assumes you have konqueror/KDE ennvironment installed - you don't need to be in KDE, but just have it installed).

In konqueror, open the "Devices" icon in the left pane, and you should see all possible devices.

Click the one that says "hdc1", and it should mount it for you and display the contents.

If that doesn't work, then report any error. You will need NTFS support if it is an NTFS partition.

If it works, we can go through the commandline setup.

Since Fedora is inept, you would have to recompile the kernel to get NTFS support, this is the only distro I know that makes you do this. Learn how to do it the right way, don't use Konqueror, or Nautilus, or some other GUI tool. As root first create the mount point:

mkdir /mnt/windows

mount /dev/hdc1 /mnt will not work. You need to know the filesystem for the drive. If it is NTFS

mount -t ntfs -o umask=0222 /dev/hdc1 /mnt/windows

If it is FAT32

mount -t vfat /dev/hdc1 /mnt/windows

  j79zlr said:
Since Fedora is inept, you would have to recompile the kernel to get NTFS support, this is the only distro I know that makes you do this. Learn how to do it the right way, don't use Konqueror, or Nautilus, or some other GUI tool.  As root first create the mount point:

mkdir /mnt/windows

mount /dev/hdc1 /mnt will not work.  You need to know the filesystem for the drive.  If it is NTFS

mount -t ntfs -o umask=0222 /dev/hdc1 /mnt/windows

If it is FAT32

mount -t vfat /dev/hdc1 /mnt/windows

585766695[/snapback]

mount will usually try to guess the filesystems.

The drive is NTFS, left over from the old XP install, but there is nothing on it, I moved all my files onto another machine before I installed Linux just incase I hosed everything.

So what I would like to do is assign a new file system to it that can be used in Linux, from there I think I know how to get it to work. But how do I format the drive?

Okay well after I'd finished typing most of this and went to the preview, I saw that j79zlr had already replied, so I just modified this a bit so that it isn't entirely redundant (i'd hate to think that all that time was wasted). So, unless you want to have multiple partitions on your 160GB harddrive, just ignore my post and do what he said.

But if you want more than one partition, then you can log on as root in a console, and run fdisk /dev/hdc.

Type p and press enter, it should give you something like this (this is what it gives me for my 80GB harddrive):

Disk /dev/hda: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          63       31720+  83  Linux
/dev/hda2              64        1056      500472   82  Linux swap / Solaris
/dev/hda3            1057       50660    25000416   83  Linux
/dev/hda4           50661      155061    52618104    5  Extended
/dev/hda5           50661      100264    25000384+  83  Linux
/dev/hda6          100265      155061    27617656+  83  Linux

There will probably only be a /dev/hdc1, but just do this to see if there are actually any others.

When you've done this, take note of how many there are (/dev/hdc1, /dev/hdc2, etc).

To delete the partition, press d, and then it will prompt you to enter a number, which is the number of the partition (e.g. 1 for /dev/hdc1), and repeat this for each of the partitions (again, there will probably only be one).

Now that the partition table is clear, press n. This is to add a new partition. You'll want to leave the First cylinder value blank. If you want the new partition to take up the entire drive, leave the Last cylinder value blank too. However, if you want more than one partition on this disk, then type +sizeM, where "size" is the number of megabytes (so if you want a 60GB partition, type +61440M). Repeat this for each partition that you want (and leave the First cylinder value blank each time; it will default to where the last partition finished). For the last partition, leave the Last cylinder blank, and it will default to the last one on the disk.

The default system id (Linux) won't need to be changed, so now you can just press w to write the changes to disk and exit. To make the new partitions have an ext3 filesystem, in your console, run mke2fs -j /dev/hdcX for each of your partitions.

Once that's finished, you should be able to mount -t ext3 /dev/hdcX /some/empty/dir. :)

Thanks! But something else I was working on hosed my install, so when I reinstalled I just used the setup program to create the mount points for format for me :)

But now I know how to in Linux as well.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Ummmm Are you kidding? Do think these books being sold are disclosing they are AI written?
    • i'm just commenting because of this madness. you simply asked "what crowd" which i too am genuinely curious about, only to receive a response in the form of a link that directs to an analysis of the audited financial statements with the accompanying notes. then you say that the guy who wrote it is stupid, which whatever, that's not an argument being discussed atm, only to receive a response from Arceles saying "i don't deal with people whose first response is an ad homenim". jesus. this is like making a claim, and then saying "i don't deal with people who speak in a certain way or swear so i'm not gonna answer you hah!" (said in a nasaly voice, not trying to depict you Arceles). then focus on the argument instead of the explanation begins... "so what don't you like about the guy (lunduke)" followed by "he just likes to insult people" and the explanation for the "crowd" being referred to was never even established. so a request for an explanation about the crowd turned into an argument about "why do you think lunduke is an idiot". wowza.
    • Sony lays off 30% of staff from Days Gone developer Bend Studio by Pulasthi Ariyasinghe Another wave of layoffs has hit the game developer space, and this time, it's a first-party Sony studio that's been affected. Following a report by Bloomberg's Jason Schreier, Bend Studio has confirmed that it is letting go of "incredibly talented teammates" as it begins work on a new game project. "Today, we said goodbye to some incredibly talented teammates as we transition to our next project," said Bend Studio in a social media post today. "We're deeply thankful for their contributions as they've shaped who we are, and their impact will always be part of our story." Bend Studio is most well-known for its 2019-released open-world zombie adventure Days Gone, which even received a remaster just a few months ago. Prior to that, the studio had been responsible for the classic Syphon Filter series while also developing several PlayStation Portable and Vita games like Resistance: Retribution and Uncharted: Golden Abyss, respectively. "This is a difficult moment for our team, but we hold immense respect for everyone who got us here," the company added. "As we move forward, we remain committed to building the future of Bend Studio with creativity, passion, and innovation in the titles we craft." While Sony did not detail just how many staff have been affected by this latest decision, Jason Schreier revealed that 30% of the studio is being laid off. This amounts to around 40 people, according to the reporter. Earlier this year, Sony canceled two live service games that were in development at Bend Studio and Bluepoint Games. It was never revealed what this mystery game was supposed to be. "Bend and Bluepoint are highly accomplished teams who are valued members of the PlayStation Studios family," Sony said at the time. It's unclear if Bluepoint, which had been developing a God of War live service experience, will soon be hit by its own wave of layoffs too.
    • KataLib 4.5.3.0 by Razvan Serea KataLib is more than just a music player — it's a complete audio suite designed for music lovers and creators alike. It combines a powerful audio player, a flexible metadata editor, a capable audio converter, and a music library manager into one streamlined application. Core Features: Audio Player Enjoy seamless playback of virtually any audio format or even streaming video files. DJ Mode lets you mix tracks with manual or automatic crossfades. You can also load and save WinAmp-style playlists for quick access to your favorite sets. Audio Converter Convert between a wide range of audio formats effortlessly. Trim or normalize your output automatically, and even extract audio from streaming video sources. Ideal for preparing files for different devices or platforms. Metadata Editor View and edit ID3v2 tags and other metadata. Batch edit multiple files at once, and fetch missing information directly from the MusicBrainz database. You can also apply or update album art with ease. Music Library Manager Organize your entire audio collection, search across tracks instantly, and download cover images from the internet — or use your own custom artwork. KataLib makes it easy to keep your library tidy and enriched with useful info. Supported Formats: KataLib supports a wide range of both lossy and lossless audio formats: Input: OPUS, AAC, FLAC, M4A, MP3, MP4, MPC, APE, AIF, MKV, AVI, MOV, FLV, WEBM, Ogg Vorbis, WAV, WAVPack, WMA Output: OPUS, FLAC, M4A, MP3, Ogg Vorbis, WAV Under the hood, KataLib uses the trusted FFmpeg engine for audio conversion and media playback, ensuring compatibility with virtually all mainstream media formats. Download: KataLib 4.5.3.0 | 64.5 MB (Open Source) Links: KataLib Home Page | Github | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • I had this issue and it is a nova android conflict issue. Initially the only way to fix it was clicking the screen off and then back on. Figured out it was because of a task I set up in tasker to load certain apps when I connect to my car, so fixed it by adding a 'go home' task after the app loaded and rarely have the issue now
  • Recent Achievements

    • First Post
      K Dorman earned a badge
      First Post
    • Reacting Well
      rshit earned a badge
      Reacting Well
    • Reacting Well
      Alan- earned a badge
      Reacting Well
    • Week One Done
      IAMFLUXX earned a badge
      Week One Done
    • One Month Later
      Æhund earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      545
    2. 2
      ATLien_0
      270
    3. 3
      +FloatingFatMan
      209
    4. 4
      +Edouard
      203
    5. 5
      snowy owl
      140
  • Tell a friend

    Love Neowin? Tell a friend!